package STUDENT.TRINHQUANGXUANDUC.OPPS.baitapmang.bai1;

public class Models {
	public int soDiemTrenTungBinh(int[] diem) {
		int kq = 0;
		for (int i = 0; i < diem.length; i++) {
			if (diem[i] >= 5 && diem[i] > 0) {
				kq++;
			}
		}
		return kq;
	}

	public int soDiemDuoiTrungBinh(int[] diem) {
		int kq = 0;
		for (int i = 0; i < diem.length; i++) {
			if (diem[i] < 5 && diem[i] > 0) {
				kq++;
			}
		}
		return kq;
	}
}
